.class public final Lcom/ninesky/browser/view/j;
.super Landroid/widget/ScrollView;


# static fields
.field private static i:Landroid/graphics/Bitmap;


# instance fields
.field private a:Lcom/ninesky/browser/view/bl;

.field private b:Lcom/ninesky/browser/view/bg;

.field private c:Landroid/widget/GridView;

.field private d:Landroid/widget/GridView;

.field private e:Landroid/view/LayoutInflater;

.field private f:Lcom/ninesky/browser/BrowserActivity;

.field private g:Lcom/ninesky/widget/l;

.field private h:Lcom/ninesky/widget/l;


# direct methods
.method public constructor <init>(Lcom/ninesky/browser/BrowserActivity;)V
    .locals 3

    const/4 v2, -0x1

    invoke-direct {p0, p1}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/ninesky/browser/view/j;->f:Lcom/ninesky/browser/BrowserActivity;

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/j;->setDrawingCacheEnabled(Z)V

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/view/j;->e:Landroid/view/LayoutInflater;

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->e:Landroid/view/LayoutInflater;

    const v1, 0x7f030008

    invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v0, v2, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/j;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v0, 0x7f06000c

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/j;->setBackgroundResource(I)V

    const v0, 0x7f0c0017

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/GridView;

    iput-object v0, p0, Lcom/ninesky/browser/view/j;->d:Landroid/widget/GridView;

    new-instance v0, Lcom/ninesky/browser/view/bl;

    iget-object v1, p0, Lcom/ninesky/browser/view/j;->f:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v0, p0, v1}, Lcom/ninesky/browser/view/bl;-><init>(Lcom/ninesky/browser/view/j;Landroid/content/Context;)V

    iput-object v0, p0, Lcom/ninesky/browser/view/j;->a:Lcom/ninesky/browser/view/bl;

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->a:Lcom/ninesky/browser/view/bl;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/bl;->a()V

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->d:Landroid/widget/GridView;

    iget-object v1, p0, Lcom/ninesky/browser/view/j;->a:Lcom/ninesky/browser/view/bl;

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->d:Landroid/widget/GridView;

    new-instance v1, Lcom/ninesky/browser/view/bb;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/view/bb;-><init>(Lcom/ninesky/browser/view/j;)V

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->d:Landroid/widget/GridView;

    new-instance v1, Lcom/ninesky/browser/view/bc;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/view/bc;-><init>(Lcom/ninesky/browser/view/j;)V

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V

    const v0, 0x7f0c0018

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/GridView;

    iput-object v0, p0, Lcom/ninesky/browser/view/j;->c:Landroid/widget/GridView;

    new-instance v0, Lcom/ninesky/browser/view/bg;

    iget-object v1, p0, Lcom/ninesky/browser/view/j;->f:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v0, p0, v1}, Lcom/ninesky/browser/view/bg;-><init>(Lcom/ninesky/browser/view/j;Landroid/content/Context;)V

    iput-object v0, p0, Lcom/ninesky/browser/view/j;->b:Lcom/ninesky/browser/view/bg;

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->b:Lcom/ninesky/browser/view/bg;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/bg;->a()V

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->c:Landroid/widget/GridView;

    iget-object v1, p0, Lcom/ninesky/browser/view/j;->b:Lcom/ninesky/browser/view/bg;

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->c:Landroid/widget/GridView;

    new-instance v1, Lcom/ninesky/browser/view/bd;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/view/bd;-><init>(Lcom/ninesky/browser/view/j;)V

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/view/j;)Landroid/view/LayoutInflater;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->e:Landroid/view/LayoutInflater;

    return-object v0
.end method

.method static synthetic a(Lcom/ninesky/browser/view/j;Lcom/ninesky/widget/l;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/view/j;->g:Lcom/ninesky/widget/l;

    return-void
.end method

.method static synthetic b(Lcom/ninesky/browser/view/j;)Lcom/ninesky/browser/BrowserActivity;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->f:Lcom/ninesky/browser/BrowserActivity;

    return-object v0
.end method

.method static synthetic b(Lcom/ninesky/browser/view/j;Lcom/ninesky/widget/l;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/view/j;->h:Lcom/ninesky/widget/l;

    return-void
.end method

.method static synthetic c(Lcom/ninesky/browser/view/j;)Lcom/ninesky/widget/l;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->g:Lcom/ninesky/widget/l;

    return-object v0
.end method

.method static synthetic d(Lcom/ninesky/browser/view/j;)Lcom/ninesky/widget/l;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->h:Lcom/ninesky/widget/l;

    return-object v0
.end method


# virtual methods
.method public final a()V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->a:Lcom/ninesky/browser/view/bl;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/bl;->a()V

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->b:Lcom/ninesky/browser/view/bg;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/bg;->a()V

    return-void
.end method

.method public final b()Landroid/graphics/Bitmap;
    .locals 7

    const/16 v6, 0x73

    :try_start_0
    sget-object v0, Lcom/ninesky/browser/view/j;->i:Landroid/graphics/Bitmap;

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/view/j;->getDrawingCache()Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    mul-int/lit8 v1, v1, 0x7f

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    div-int/2addr v1, v2

    iget-object v2, p0, Lcom/ninesky/browser/view/j;->f:Lcom/ninesky/browser/BrowserActivity;

    const/high16 v3, 0x42fe

    invoke-static {v2, v3}, Lcom/ninesky/a/c;->a(Landroid/content/Context;F)I

    move-result v2

    iget-object v3, p0, Lcom/ninesky/browser/view/j;->f:Lcom/ninesky/browser/BrowserActivity;

    int-to-float v4, v1

    invoke-static {v3, v4}, Lcom/ninesky/a/c;->a(Landroid/content/Context;F)I

    move-result v3

    const/4 v4, 0x0

    invoke-static {v0, v2, v3, v4}, Landroid/graphics/Bitmap;->createScaledBitmap(Landroid/graphics/Bitmap;IIZ)Landroid/graphics/Bitmap;

    move-result-object v0

    const/4 v2, 0x0

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/ninesky/browser/view/j;->f:Lcom/ninesky/browser/BrowserActivity;

    const/high16 v5, 0x42fe

    invoke-static {v4, v5}, Lcom/ninesky/a/c;->a(Landroid/content/Context;F)I

    move-result v4

    iget-object v5, p0, Lcom/ninesky/browser/view/j;->f:Lcom/ninesky/browser/BrowserActivity;

    if-le v6, v1, :cond_1

    :goto_0
    int-to-float v1, v1

    invoke-static {v5, v1}, Lcom/ninesky/a/c;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-static {v0, v2, v3, v4, v1}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIII)Landroid/graphics/Bitmap;

    move-result-object v0

    sput-object v0, Lcom/ninesky/browser/view/j;->i:Landroid/graphics/Bitmap;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_1
    sget-object v0, Lcom/ninesky/browser/view/j;->i:Landroid/graphics/Bitmap;

    return-object v0

    :cond_1
    move v1, v6

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public final c()V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->g:Lcom/ninesky/widget/l;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->g:Lcom/ninesky/widget/l;

    invoke-virtual {v0}, Lcom/ninesky/widget/l;->c()V

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/view/j;->h:Lcom/ninesky/widget/l;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/view/j;->h:Lcom/ninesky/widget/l;

    invoke-virtual {v0}, Lcom/ninesky/widget/l;->c()V

    :cond_1
    return-void
.end method
